furny.furndb.importer
Class RenderThumbnailState.RenderToImageProcessor

java.lang.Object
  extended by furny.furndb.importer.RenderThumbnailState.RenderToImageProcessor
All Implemented Interfaces:
com.jme3.post.SceneProcessor
Enclosing class:
RenderThumbnailState

public class RenderThumbnailState.RenderToImageProcessor
extends java.lang.Object
implements com.jme3.post.SceneProcessor

This is a processor, that renders scenes to a java.awt.Image.

Since:
26.06.2011
Author:
stephan

Field Summary
private  java.awt.image.BufferedImage awtImage
           
private  java.nio.ByteBuffer outBuf
           
private  com.jme3.renderer.Renderer renderer
           
private  int shotIndex
           
 
Constructor Summary
RenderThumbnailState.RenderToImageProcessor()
           
 
Method Summary
 void cleanup()
           
 void initialize(com.jme3.renderer.RenderManager rm, com.jme3.renderer.ViewPort vp)
           
 boolean isInitialized()
           
 void postFrame(com.jme3.texture.FrameBuffer out)
           
 void postQueue(com.jme3.renderer.queue.RenderQueue rq)
           
 void preFrame(float tpf)
           
 void reshape(com.jme3.renderer.ViewPort vp, int w, int h)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

renderer

private com.jme3.renderer.Renderer renderer

outBuf

private java.nio.ByteBuffer outBuf

shotIndex

private int shotIndex

awtImage

private java.awt.image.BufferedImage awtImage
Constructor Detail

RenderThumbnailState.RenderToImageProcessor

public RenderThumbnailState.RenderToImageProcessor()
Method Detail

initialize

public void initialize(com.jme3.renderer.RenderManager rm,
                       com.jme3.renderer.ViewPort vp)
Specified by:
initialize in interface com.jme3.post.SceneProcessor

isInitialized

public boolean isInitialized()
Specified by:
isInitialized in interface com.jme3.post.SceneProcessor

reshape

public void reshape(com.jme3.renderer.ViewPort vp,
                    int w,
                    int h)
Specified by:
reshape in interface com.jme3.post.SceneProcessor

preFrame

public void preFrame(float tpf)
Specified by:
preFrame in interface com.jme3.post.SceneProcessor

postQueue

public void postQueue(com.jme3.renderer.queue.RenderQueue rq)
Specified by:
postQueue in interface com.jme3.post.SceneProcessor

postFrame

public void postFrame(com.jme3.texture.FrameBuffer out)
Specified by:
postFrame in interface com.jme3.post.SceneProcessor

cleanup

public void cleanup()
Specified by:
cleanup in interface com.jme3.post.SceneProcessor